package com.Location;


import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;


public class UserLocationListener implements LocationListener {

    private final Context context;

    public UserLocationListener(Context context) {

        super();
        this.context = context;
    }

    @Override
    public void onLocationChanged(Location loc) {

        // called when the listener is notified with a location update from the
        // GPS
        Async_GeoUpdate aup = new Async_GeoUpdate(context, loc);
        aup.execute();
    }

    @Override
    public void onProviderDisabled(String provider) {

        // called when the GPS provider is turned off (user turning off the GPS
        // on the phone)
    }

    @Override
    public void onProviderEnabled(String provider) {

        // called when the GPS provider is turned on (user turning on the GPS on
        // the phone)
    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {

        // called when the status of the GPS provider changes
    }
}
